//
//  MyCell.m
//  MyTrip
//
//  Created by zhang on 15/9/4.
//  Copyright (c) 2015年 张益. All rights reserved.
//

#import "MyCell.h"
#import "DKNightVersion.h"

@implementation MyCell

- (void)dealloc
{
    [_myLabel release];
    [_myImage release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [DKNightVersionManager addClassToSet:self.class];
        self.nightBackgroundColor = UIColorFromRGB(0x343434);
        self.myImage = [[[UIImageView alloc] initWithFrame:CGRectMake(20 * OffWidth, 0, self.contentView.frame.size.height, self.contentView.frame.size.height)] autorelease];
        [self.contentView addSubview:_myImage];
        self.myLabel = [[[UILabel alloc] initWithFrame:CGRectMake(_myImage.frame.size.width + _myImage.frame.origin.x + 20 * OffWidth, 0, self.contentView.frame.size.width - _myImage.frame.size.width, self.contentView.frame.size.height)] autorelease];
        [self.contentView addSubview:_myLabel];
        
        
    }
    return self;
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
